#ifndef PLAYER_H
#define PLAYER_H
#include <QPixmap>
#include "bullet.h"

class Player
{
public:
    Player();
    void setPosition(int x,int y);//设置飞机位置
    void shoot();//发射子弹

public:
    QPixmap m_Plane;
    //飞机坐标
    int m_X;
    int m_Y;
    //飞机的矩形边框
    QRect m_Rect;
    //弹匣
    Bullet m_bullets[BULLET_NUM];
    //子弹发射间隔记录
    int m_recorder;

    //生命值和技能点
    int m_life;
    int m_skill;

    //得分
    double m_score;


};

#endif // PLAYER_H
